package cn.china.xfood.service;

import entity.Usermenu;
import mapper.UsermenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsermenuService implements UsermenuMapper {
    @Autowired
    UsermenuMapper usermenuMapper;

    @Override
    public List<Usermenu> getUserMenu(String orderNumber, int currentPage, int pageCount) {
        return usermenuMapper.getUserMenu(orderNumber,currentPage,pageCount);
    }

    @Override
    public int getMenuCount(String orderNumber) {
        return usermenuMapper.getMenuCount(orderNumber);
    }

    @Override
    public int insert(Usermenu record) {
        return usermenuMapper.insert(record);
    }

    @Override
    public int insertlist(List<Usermenu> usermenu) {
        return usermenuMapper.insertlist(usermenu);
    }

    @Override
    public int insertSelective(Usermenu record) {
        return usermenuMapper.insertSelective(record);
    }
}
